<?php

namespace app\admin\controller;

use think\Controller;
use think\Request;

use think\Session;
class Base extends Controller
{

    public function _initialize()
    {
        $result=Session::has('user_id');
        if(!$result){
            $this->error('用户未登录,f','Login/index');
        }
    }

}
